package com.foreknow.dao;

import com.foreknow.model.Admin;
import com.foreknow.model.business;

import java.sql.SQLException;
import java.util.List;

public interface BusinessDao {

    /**
     * 添加信息
     * @return
     */
    public boolean save(business business);

    /**
     * 获取所有信息
     * @return
     * @throws SQLException
     */
    public List<Object> getAll()throws SQLException;

    /**
     * 根据id删除信息
     * @throws SQLException
     */
    public boolean deleteById(int id)throws SQLException;

    /**
     * 根据id修改信息
     * @return
     * @throws SQLException
     */
    public business updateById(int id)throws SQLException;

    /**
     * 根据id查询个人信息
     */
    public List<Object> getQueryById(int id);
}
